Optimal. Leaf size=337 \[ -\frac {i (a-i b)^{5/2} \sqrt {c-i d} \tanh ^{-1}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {i (a+i b)^{5/2} \sqrt {c+i d} \tanh ^{-1}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {\sqrt {b} \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{4 d^{3/2} f}-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 2.84, antiderivative size = 337, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 9, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.310, Rules used = {3647, 3728,
3736, 6857, 65, 223, 212, 95, 214} \begin {gather*} \frac {\sqrt {b} \left (15 a^2 d^2+10 a b c d-\left (b^2 \left (c^2+8 d^2\right )\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{4 d^{3/2} f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}-\frac {i (a-i b)^{5/2} \sqrt {c-i d} \tanh ^{-1}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {i (a+i b)^{5/2} \sqrt {c+i d} \tanh ^{-1}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 95
Rule 212
Rule 214
Rule 223
Rule 3647
Rule 3728
Rule 3736
Rule 6857
Rubi steps
\begin {align*} \int (a+b \tan (e+f x))^{5/2} \sqrt {c+d \tan (e+f x)} \, dx &=\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\int \frac {\sqrt {c+d \tan (e+f x)} \left (\frac {1}{2} \left (-b^3 c+4 a^3 d-3 a b^2 d\right )+2 b \left (3 a^2-b^2\right ) d \tan (e+f x)-\frac {1}{2} b^2 (b c-9 a d) \tan ^2(e+f x)\right )}{\sqrt {a+b \tan (e+f x)}} \, dx}{2 d}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\int \frac {-\frac {1}{4} b \left (b^3 c^2-8 a^3 c d+14 a b^2 c d+9 a^2 b d^2\right )+2 b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) \tan (e+f x)+\frac {1}{4} b^2 \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \tan ^2(e+f x)}{\sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}} \, dx}{2 b d}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\text {Subst}\left (\int \frac {-\frac {1}{4} b \left (b^3 c^2-8 a^3 c d+14 a b^2 c d+9 a^2 b d^2\right )+2 b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) x+\frac {1}{4} b^2 \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) x^2}{\sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{2 b d f}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\text {Subst}\left (\int \left (\frac {b^2 \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right )}{4 \sqrt {a+b x} \sqrt {c+d x}}+\frac {2 \left (b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )+b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) x\right )}{\sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )}\right ) \, dx,x,\tan (e+f x)\right )}{2 b d f}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\text {Subst}\left (\int \frac {b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )+b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) x}{\sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{b d f}+\frac {\left (b \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{8 d f}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}+\frac {\text {Subst}\left (\int \left (\frac {-b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )+i b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )}{2 (i-x) \sqrt {a+b x} \sqrt {c+d x}}+\frac {b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )+i b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )}{2 (i+x) \sqrt {a+b x} \sqrt {c+d x}}\right ) \, dx,x,\tan (e+f x)\right )}{b d f}+\frac {\left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b \tan (e+f x)}\right )}{4 d f}\\ &=-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}-\frac {\left ((i a+b)^3 (c-i d)\right ) \text {Subst}\left (\int \frac {1}{(i+x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {\left (-b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )+i b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )\right ) \text {Subst}\left (\int \frac {1}{(i-x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 b d f}+\frac {\left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{4 d f}\\ &=\frac {\sqrt {b} \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{4 d^{3/2} f}-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}-\frac {\left ((i a+b)^3 (c-i d)\right ) \text {Subst}\left (\int \frac {1}{-a+i b-(-c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {\left (-b d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )+i b d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )\right ) \text {Subst}\left (\int \frac {1}{a+i b-(c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{b d f}\\ &=-\frac {i (a-i b)^{5/2} \sqrt {c-i d} \tanh ^{-1}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {i (a+i b)^{5/2} \sqrt {c+i d} \tanh ^{-1}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {\sqrt {b} \left (10 a b c d+15 a^2 d^2-b^2 \left (c^2+8 d^2\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{4 d^{3/2} f}-\frac {b (b c-9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{4 d f}+\frac {b^2 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}}{2 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.03, size = 565, normalized size = 1.68 \begin {gather*} \frac {\frac {4 b d \left (b \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )+\sqrt {-b^2} \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {-c+\frac {\sqrt {-b^2} d}{b}} \sqrt {a+b \tan (e+f x)}}{\sqrt {-a+\sqrt {-b^2}} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {-a+\sqrt {-b^2}} \sqrt {-c+\frac {\sqrt {-b^2} d}{b}}}-\frac {4 b d \left (b \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right )-\sqrt {-b^2} \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {c+\frac {\sqrt {-b^2} d}{b}} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+\sqrt {-b^2}} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a+\sqrt {-b^2}} \sqrt {c+\frac {\sqrt {-b^2} d}{b}}}+b^3 (-b c+9 a d) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}+2 b^4 \sqrt {a+b \tan (e+f x)} (c+d \tan (e+f x))^{3/2}-\frac {b^{5/2} \sqrt {c-\frac {a d}{b}} \left (-10 a b c d-15 a^2 d^2+b^2 \left (c^2+8 d^2\right )\right ) \sinh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c-\frac {a d}{b}}}\right ) \sqrt {\frac {b (c+d \tan (e+f x))}{b c-a d}}}{\sqrt {d} \sqrt {c+d \tan (e+f x)}}}{4 b^2 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \sqrt {c +d \tan \left (f x +e \right )}\, \left (a +b \tan \left (f x +e \right )\right )^{\frac {5}{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tan {\left (e + f x \right )}\right )^{\frac {5}{2}} \sqrt {c + d \tan {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^{5/2}\,\sqrt {c+d\,\mathrm {tan}\left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________